package 国庆编程作业;

import java.util.ArrayList;
import java.util.List;

public class Test02 {
    public static void main(String[] args) {
        List<Emp> list = new ArrayList<>();
        list.add(new Emp(001,"张三",5000));
        list.add(new Emp(002,"李四",5500));
        list.add(new Emp(003,"赵六",4000));

        System.out.println("员工姓名\t"+"员工薪资\t");
        for (int i = 0; i < list.size();i++){
            Emp l = list.get(i);
            System.out.println(l.getName()+"\t\t"+l.getSalary());
        }

    }
}
